package com.sw.rpc.serviceimpl;

import com.sw.rpc.annotation.Service;
import com.sw.rpc.service.IUserService;
import com.sw.rpc.service.RpcRequest;

/**
 * @author sw
 * @project zdy-rpc
 * @description
 * @date 2020/5/15 13:14
 */
@Service
public class UserServiceImpl implements IUserService {
    @Override
    public String sayHello(RpcRequest rpcRequest) {
        System.out.println("call is success "+rpcRequest.toString());
        return "call is success "+rpcRequest.getMethodName();
    }
    @Override
    public String sayHello(String world){
        System.out.println("call is success "+world);
        return "call is success "+world;
    }

}
